# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-control-center
pkgver=1.28.0
pkgrel=0
pkgdesc="MATE's main interface for configuration of various aspects of your desktop"
url="https://github.com/mate-desktop/mate-control-center"
arch="all"
license="GPL-2.0-or-later"
depends="
	desktop-file-utils
	mate-common
	mate-icon-theme
	mate-menus
	"
makedepends="
	autoconf
	autoconf-archive
	automake
	dconf-dev
	gtk+3.0-dev
	intltool
	itstool
	libayatana-appindicator-dev
	libgtop-dev
	libmatekbd-dev
	librsvg-dev
	libtool
	libxklavier-dev
	marco-dev
	mate-desktop-dev
	mate-menus-dev
	mate-settings-daemon-dev
	polkit-dev
	udisks2-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
# disable-systemd.patch can be removed >1.28.0
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-control-center-$pkgver.tar.xz
	disable-systemd.patch
	"

build() {
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--enable-static=no \
		--disable-update-mimedb \
		--disable-systemd
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6047ecf466d6168bbd040dc0315ce6ffadc189a95cc794dbe521845fa4b7889506ea46246fbbd19ecb293b036b10190ab584dc2dc97653388b1367b65b29ed74  mate-control-center-1.28.0.tar.xz
058d49a712817c1cee5a0474712c2e8b83b6208e535590a4e055e97cdd95d5c01f33fd0c3b6df0c35f9d2f73f3a273b69f2ecc0f9189f7618d6d0e759eaaa699  disable-systemd.patch
"
